home *** CD-ROM | disk | FTP | other *** search
/ Amiga Game-Power / Amiga Game-Power.iso / anwendungen / disk salv / memtrace / readme < prev    next >
Text File  |  1994-05-20  |  939b  |  24 lines

  1.  
  2.     These routines will help debug memory allocation and freeing
  3. in your programs.  These routines will complain if you try and
  4. free memory you didn't allocate and later will complain about
  5. memory not freed when your program finishes.  The complaint will
  6. tell the file, function and line # of the offensive memory call.
  7.  
  8.     To use these routines, include mem.h in all of your source
  9. files.  Then compile mem.c and link your program with mem.o.
  10. Use AllocMem() and FreeMem() as normal but add the routine call to
  11. freeall() before your program exits in order to get a list of
  12. memory that wasn't free'd up.
  13.  
  14.     I used this under Manx 3.6 with the +L option, but it should
  15. work with 16 bit ints as well.
  16.  
  17.     To turn on the memory trace, define MEMTRACE at compile time
  18. with the -D option, (-DMEMTRACE), and make sure that all the files
  19. get compiled with this option.  Do NOT include mem.h in mem.c as
  20. it will break things big time.
  21.  
  22. Happy hacking,
  23. --j
  24.